﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Test
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ToolStrip ts = new ToolStrip();

            ts.ItemAdded += new ToolStripItemEventHandler(ts_ItemAdded);

            ToolStripMenuItem tsmi = new ToolStripMenuItem("ToolStripMenuItem1");
            tsmi.Name = "ToolStripMenuItem1";

            ts.Items.Add(tsmi);

            Application.Run(new Form1());

            // ToolStrip;

            // Control;
        }

        static void ts_ItemAdded(object sender, ToolStripItemEventArgs e)
        {
            MessageBox.Show("Item added: " + e.Item.ToString());
        }
    }
}
